package com.xiaohe66.web.domain.common.repository;

import com.xiaohe66.web.domain.account.value.AccountId;
import com.xiaohe66.web.domain.common.agg.Tag;
import com.xiaohe66.web.domain.common.value.TagName;
import com.xiaohe66.web.domain.common.value.TagId;
import com.xiaohe66.web.integration.domain.Repository;

import java.util.List;

/**
 * @author xiaohe
 * @since 2023-01-29 11:53
 */
public interface TagRepository extends Repository<Tag, TagId> {

    TagId getOrCreateTagId(AccountId createId, TagName tagName);

    List<Tag> listByCreateId(AccountId createId);

}
